{% extends "base.html" %}
{% load utils %}

{% block content %}
<div id="content-header">
<h2>账户 {{ account.name }}</h2>
<div class="top-tools">
	<a href="/sa/" class="link">返回帐户列表</a>
	<a href="transactions/" class="link">查看所有交易</a>
</div>
<div class="clear"></div>
</div>
<div>
	<table class="acc">
	<thead>
		<tr>
			<th class="col-account">成员账户</th>
			<th>余额</th>
		</tr>
	</thead>
	<tfoot>
		<tr class="total">
			<td class="col-account">总余额</td>
			<td class="col-amount">{{ account.amount }}</td>
		</tr>
	</tfoot>
	<tbody>
	{% for member in account.get_members %}
		<tr>
			<td class="col-account">{{ member.name }}</td>
			<td class="col-amount">{{ member.amount }} {% if member.user.id == request.user.id %}<span class="my">*</span>{% endif %}</td>
		</tr>
	{% endfor %}
	</tbody>
	</table>
</div>

<div class="bottom-tools">
	<a href="deposit/" class="button">存款</a>
	<a href="draw/" class="button">取款</a>
	<a href="pay/" class="button">支付</a>
	<a href="dp/" class="button">垫付</a>
	<a href="transfer/" class="button">转账</a>
	<a href="transactions/" class="link">查看所有交易</a>
</div>

{% endblock %}

<p>共享账户{{ account.name }}详情</p>

